function [ cost ] = costOfRoute( route_vector, WeightMatrix )
% funkce vraci cenu (cost) cesty, ktera je zadana vektorem

    cost = 0;

    for i=1:length(route_vector)-1
       
        cost = cost + WeightMatrix( route_vector(i), route_vector(i+1) );                
    end

end

